slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

SimpleMultiplayerPlayer.cs (364B)


      1 using UnityEngine;
      2 
      3 public class SimpleMultiplayerPlayer : MonoBehaviour
      4 {
      5     // Just add *some* kind of movement. The specifics here are not of interest. Serves just to
      6     // demonstrate that the inputs are indeed separate.
      7     public void OnTeleport()
      8     {
      9         transform.position = new Vector3(Random.Range(-75, 75), 0.5f, Random.Range(-75, 75));
     10     }
     11 }